package com.wrupple.muba.catalogs.client.activity.process.impl;

import com.wrupple.muba.catalogs.client.activity.process.CatalogSelectionProcess;
import com.wrupple.muba.catalogs.client.activity.process.state.BrowsePlaceInterpret;
import com.wrupple.muba.catalogs.client.activity.process.state.InteractionExitState;
import com.wrupple.muba.catalogs.domain.CatalogEntry;
import com.wrupple.muba.common.client.activity.ActivityProcess;
import com.wrupple.muba.common.client.activity.ActivityProcessImpl;
import com.wrupple.muba.common.shared.process.impl.SingletonListSelector;

public class BrowsingActivityProcess extends ActivityProcessImpl implements ActivityProcess {

	public BrowsingActivityProcess(BrowsePlaceInterpret read,
			CatalogSelectionProcess<?> process, InteractionExitState exit) {
		add(read);
		addAll(process);
		add(new SingletonListSelector<CatalogEntry>());
		exit.setCatalogIdProvider(read.getCatalogIdProvider());
		add(exit);
	}

	

}
